package com.dayaokeji.rhythmschoolstudent.client.mine;

import android.os.Bundle;
import android.support.v7.widget.Toolbar;
import android.widget.GridView;


import com.dayaokeji.rhythmschoolstudent.R;
import com.dayaokeji.rhythmschoolstudent.client.common.base.common.BaseActivity;
import com.dayaokeji.rhythmschoolstudent.client.mine.adapter.AppThemesAdapter;
import com.dayaokeji.rhythmschoolstudent.client.mine.data.AppThemes;

import org.greenrobot.eventbus.EventBus;

import butterknife.BindView;

/**
 * 主题选择
 */
public class ChooseThemeActivity extends BaseActivity {

    @BindView(R.id.toolbar)
    Toolbar toolbar;
    @BindView(R.id.gv_themes)
    GridView gridThemes;
    private AppThemesAdapter appThemesAdapter;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_choose_theme);
        setSupportActionBar(toolbar);

        init();
    }


    private void init() {
        initData();

    }

    private void initData() {
        appThemesAdapter = new AppThemesAdapter(AppThemes.getThemeBeans());
        gridThemes.setAdapter(appThemesAdapter);
    }

}
